package com.guigu.www.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.guigu.www.common.PageVo;
import com.guigu.www.pojo.Employee;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tj
 * @since 2021-03-17
 */
public interface EmployeeService extends IService<Employee> {
    PageVo<Employee> findList(Map<String,String> map);

//    PageVo<Employee> findList(Map<String,String> map,Employee employee);

    //根据员工编号查询员工
    Employee queryById(int empno);

    //添加员工
    int addEmp(Employee employee);

    //修改员工
    int updEmp(Employee employee);

    //删除员工
    int delEmp(int empno);
}
